<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>stuList展示页</title>
    <script th:src="@{/webjars/jquery/3.2.1/dist/jquery.min.js}"></script>
    <script th:src="@{/webjars/bootstrap/4.3.1/js/bootstrap.min.js}"></script>
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/4.3.1/css/bootstrap.min.css}" />
</head>
<body>
    <div class="container">
        <table class="table-striped">
            <tr>
                <th>No.</th>
                <th>stuId</th>
                <th>stuName</th>
                <th>stuAge</th>
                <th>stuBirthday</th>
                <th>stuSex</th>
            </tr>
            <tr th:each="stu, statu : ${stuList}">
                <td th:text="${statu.count}"></td>
                <td th:text="${stu.stuId}"></td>
                <td th:text="${stu.stuName}"></td>
                <td th:text="${stu.stuAge}"></td>
                <td th:text="${stu.stuBirthday eq null ? '保密' : #dates.format(stu.stuBirthday, 'yyyy-MM-dd')}"></td>
                <td th:text="${stu.stuSex}"></td>
            </tr>
        </table>
    </div>
</body>
</html>